package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
)

func main() {

	resp, err := http.Get("https://www.baidu.com")
	if err != nil {
		log.Fatal(err)
		return
	}
	defer resp.Body.Close()
	all, err := io.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
		return
	}
	fmt.Println(string(all))

	//创建delete请求
	//http.NewRequest("DELETE", "https://www.baidu.com", nil)
}
